package structure.pattern.decorator.door;

import structure.pattern.decorator.HouseDecorator;
import structure.pattern.decorator.door.DoorFactory;

/**
 * @Autor: yuanyongan
 * @Description:
 * @Date 2023/1/9 14:54
 */
public class GlassDoorDecorator extends DoorFactory {
    public GlassDoorDecorator(HouseDecorator houseDecorator){
        super(houseDecorator);
    }


    public void operate(){
        houseDecorator.operate();
        addGlassDoor();

    }
    public void addGlassDoor(){
        System.out.println("给厕所加玻璃门");
    }
}
